package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class ReportRowNumModes extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public final static ReportRowNumModes DoNotShown = new ReportRowNumModes(0,"No",null);
    public final static ReportRowNumModes ShowRelative = new ReportRowNumModes(1,"Relative","relative,r,rel");
    public final static ReportRowNumModes ShowAbsolute = new ReportRowNumModes(2,"Absolute","absolute,a,abs");

    protected ReportRowNumModes(int nId,String strName,String str)
    {
        super(nId,strName,str);
    }

    public static ReportRowNumModes fromName(String str)
    {
        return(ReportRowNumModes) IntegerPair.findConstant(ReportRowNumModes.class,str,DoNotShown);
    }

    public boolean isNone()
    {
        return this.equals(DoNotShown);
    }

    public boolean isRelative()
    {
        return this.equals(ShowRelative);
    }

    public int hashCode()
    {
        return super.hashCode();
    }
}
